# 作者：陈睿-cruise
# 2024年02月21日13时02分04秒
# 2979386061@qq.com
# # 第一题
# def find_single_number(nums):
#     result = 0
#     for num in nums:
#         result ^= num
#     return result
# nums = [2, 4, 1, 2, 4, 6, 6, 1, 5]
# print("出现一次的数是:", find_single_number(nums))
# # 第二题
# for i in range(0,20):
#     print(i,end=' ')
# # 第三题
# def say_hello(num):
#     count=0
#     while count<num:
#         print('hello')
#         count+=1
# say_hello(2)
# # 第四题
# import mokuai as wd5
# if __name__ == '__main__':
#     wd5.print_a()
#     wd5.print_b()
#     wd5.print_c()
# 第五题
a=1
a_new=1
print(id(a))
print(id(a_new))
b=True
b_new=True
print(id(b))
print(id(b_new))
c=3.14
c_new=3.14
print(id(c))
print(id(c_new))
d=complex(3,4)
d_new=complex(3,4)
print(id(d))
print(id(d_new))
demo_list=[1,2,3]
print(id(demo_list))
demo_list.append(4)
print(id(demo_list))
demo_dict={'姓名':'小明'}
print(id(demo_dict))
demo_dict['姓名']='小王'
print(id(demo_dict))